package com.boang.state;

/*
  @author: 13813
  @date: 2024/11/26 11:23
*/
public class ThreadStateSleepDemo01 extends Thread {
    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            System.out.println(Thread.currentThread().getName() + ":" + i);
        }
    }
}
